//
//  XLDeviceKit.h
//  XLDeviceModel
//
//  Created by ilongge on 2023/8/17.
//

#import <Foundation/Foundation.h>
#import <XLDeviceModel/UIDevice+XLDeviceModel.h>

typedef NS_ENUM(NSUInteger, XLNetworkType) {
    XLNetworkTypeUnknown          = -1,
    XLNetworkTypeNotReachable     = 0,
    XLNetworkTypeReachableViaWWAN = 1,
    XLNetworkTypeReachableViaWiFi = 2,
    XLNetworkTypeReachableViaWWANGPRS,
    XLNetworkTypeReachableViaWWAN2G,
    XLNetworkTypeReachableViaWWAN3G,
    XLNetworkTypeReachableViaWWANHRD,
    XLNetworkTypeReachableViaWWAN4G,
    XLNetworkTypeReachableViaWWAN5GNSA,
    XLNetworkTypeReachableViaWWAN5G
};

@interface XLDeviceKit : NSObject

/// 获取设备型号
+ (NSString *)deviceType;
/// 当前系统名称
+ (NSString *)getSystemName;
/// 当前系统版本号
+ (NSString *)getSystemVersion;
/// 获取iPhone名称
+ (NSString *)getiPhoneName;
/// 获取电池电量
+ (float)getBatteryLevel;
/// 获取电池当前的状态，共有4种状态
+ (NSString *) getBatteryState;
/// 获取当前语言
+ (NSString *)getDeviceLanguage;
/// 通用唯一识别码UUID
+ (NSString *)getUUID;
/// 获取app版本号
+ (NSString *)getAPPVerion;
/// 获取设备所有信息
+ (NSString *)allDeviceInfo;
/// 获取网络状态
+ (NSString *)getNetwork;
/// 获取网络类型
+ (XLNetworkType)getNetworkType;
@end


